<?
require("koneksi.php");
$nrp = $_GET["nrp"];
$pass = $_GET["password"];

//$_SESSION['nrp'] = $nrp;
$carinrp = mysql_query("select username from security where username='$nrp' and 
password ='$pass'");

//list($nrp)= mysql_fetch_row($carinrp);
$row=mysql_fetch_row($carinrp);
//echo "$row[2]<br>";
if ($row)
{
	$queri=mysql_query("select * from security where username='$nrp'");
	$array=mysql_fetch_array($queri);
	if($array[2]==1)
	{
		echo ("Sukses");
	}
	else
	{
		echo ("Gagal");
	}
}
else
{
	echo ("Gagal");
}

?>